-
-
Notifications
You must be signed in to change notification settings - Fork 305
[ZetBe] WEEK 05 solutions #2173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Blossssom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
한 주도 고생많으셨습니다! 문제에 대한 설명과 풀이, 복잡도를 잘 작성해 주셔서 생각하면서 보기 너무 좋았습니다
| class Solution: | ||
| def wordBreak(self, s: str, wordDict: List[str]) -> bool: | ||
| dp = [False for i in range(len(s))] | ||
| for i in wordDict: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 부분을 해결하지 못해서 힌트를 보고 풀었는데 이렇게 빼내서 해결할 수도 있었겠네요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
자료구조만 변경해도 search 시 효율이 더 나오지 않을까 하는 생각입니다!
|
리뷰해주셔서 감사합니다! |
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!